package cn.shopifymall.studying.mybatis.service.impl;

import cn.shopifymall.studying.mybatis.entity.TenantEntity;
import cn.shopifymall.studying.mybatis.mapper.TenantMapper;
import cn.shopifymall.studying.mybatis.service.TenantService;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author 孤风雪影
 * @Email gitee.com/efairy520
 * @Date 2022/4/22 16:58
 * @Version 1.0
 */
@Service
public class TenantServiceImpl extends ServiceImpl<TenantMapper, TenantEntity> implements TenantService {

    @Override
    @DS("femix")
    public List<TenantEntity> getAllTenantsFromFemix() {
        return baseMapper.selectList(null);
    }
}
